how to implement page factory model